//
//  UIColor+randomColor.m
//  瀑布流视图
//
//  Created by 梅毅 on 2017/7/31.
//  Copyright © 2017年 my. All rights reserved.
//

#import "UIColor+randomColor.h"

@implementation UIColor (randomColor)

+ (UIColor *)randomColor
{
    CGFloat red = arc4random() % 255 / 255.0 ;
    CGFloat green = arc4random() % 255 / 255.0;
    CGFloat blue = arc4random() % 255 / 255.0;
    //CGFloat alpha = arc4random() % 10 / 10.0;
    UIColor *color = [UIColor colorWithRed:red green:green blue:blue alpha:1];
    return color;
}

@end
